package cn.com.cym.gamezao.enums;

import io.swagger.annotations.ApiModel;

/**
 *
 */
@ApiModel("用户类型枚举")
public enum UserType {

    APPLICANT("APPLICANT","应聘者"),
    MANAGER("MANAGER","管理"),
    EMPLOYEE("EMPLOYEE","合同工");

    private String sign;

    private String value;

    private UserType(String sign,String value){
        this.sign=sign;
        this.value=value;
    }

    public String getSign(){
        return this.sign;
    }

    public String getValue(){
        return this.value;
    }

    public  static  UserType fromSign(String sign){
        for(UserType validType:UserType.values()){
            if(validType.getSign().equals(sign)){
                return validType;
            }
        }
        return  null;
    }

    public static void main(String[] args) {
        System.out.println(UserType.APPLICANT);
    }
}
